package me.zhengjie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import me.zhengjie.pojo.entity.Exam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author Long
 * @date 2021/6/28 16:00
 */
@Component
public interface ExamMapper extends BaseMapper<Exam>{
    /**
     * 分页查询监考老师自己的监考考试
     * @param page
     * @param id 老师id
     * @return
     */
    IPage<Exam> findTearcherExam(@Param("page") IPage<Exam> page,@Param("id") Integer id);
}
